package com.ruoyi.approve.service.impl;

import java.util.List;

import com.ruoyi.approve.domain.approveYsZhu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ruoyi.approve.mapper.approveYsMapper;

import com.ruoyi.approve.service.approveYsService;

/**
 * 审批预算Service业务层处理
 *
 * @author ruoyi
 * @date 2024-12-03
 */
@Service
public class approveYsServiceImpl implements approveYsService
{
    @Autowired
    private approveYsMapper assetGzyusuanZhuMapper;

    /**
     * 查询审批预算
     *
     * @param id 审批预算主键
     * @return 审批预算
     */
    @Override
    public approveYsZhu selectAssetGzyusuanZhuById(Long id)
    {
        return assetGzyusuanZhuMapper.selectAssetGzyusuanZhuById(id);
    }

    /**
     * 查询审批预算列表
     *
     * @param assetGzyusuanZhu 审批预算
     * @return 审批预算
     */
    @Override
    public List<approveYsZhu> selectAssetGzyusuanZhuList(approveYsZhu assetGzyusuanZhu)
    {
        return assetGzyusuanZhuMapper.selectAssetGzyusuanZhuList(assetGzyusuanZhu);
    }





    /**
     * 批量删除审批预算
     *
     * @param ids 需要删除的审批预算主键
     * @return 结果
     */


    /**
     * 删除审批预算信息
     *
     * @param id 审批预算主键
     * @return 结果
     */
    @Transactional
    @Override
    public int deleteAssetGzyusuanZhuById(Long id)
    {
        assetGzyusuanZhuMapper.deleteAssetGzyusuanZiByOneid(id);
        return assetGzyusuanZhuMapper.deleteAssetGzyusuanZhuById(id);
    }

    @Override
    public int handleNo(Long[] ids) {

        return assetGzyusuanZhuMapper.handleNo(ids);
    }

    @Override
    public int handleYes(Long[] ids) {
        return assetGzyusuanZhuMapper.handleYes(ids);
    }

    /**
     * 新增预算审批信息
     *
     * @param assetGzyusuanZhu 审批预算对象
     */

}
